<!DOCTYPE html>
<html>
<head lang="en">
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible"content="IE=8"><!--以IE8模式渲染-->
	<meta http-equiv="X-UA-Compatible"content="IE=7"><!--以IE7模式渲染-->
	<meta http-equiv="X-UA-Compatible"content="IE=9; IE=8; IE=7; IE=EDGE">
	<title>百朋后台管理系统</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/demo.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/public.css">
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/common.js?a=2"></script>
	<script type="text/javascript" src="__PUBLIC__/js/ajax.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/vue/dist/vue.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/vue/dist_resource/vue-resource.js"></script>
	<script type="text/javascript">
        var borrow_id='{$borrow_id}';
	</script>
</head>

<body>
<div id="custmainfo">
	<div id="custinfo"> <!-- 当前位置 -->
		<div id="index_business_detail" class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
			<div id="douApi"></div>
			<input type="hidden" id="cust_id" value="<?php echo $cust_id;?>">
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
				<tr>
					<td width="65%" valign="top" class="pr">
						<div class="indexBox" id="main_form">
							<div class="boxTitle">借款订单详情</div>
							<ul>
								<table width="100%" border="0" cellspacing="0" cellpadding="7" class="tableBasic">
									<tr>
										<td width="100">借款编号：</td>
										<td><strong>{{borrow_json.borrow_id}}</strong></td>
										<td>金额：</td>
										<td><strong>{{borrow_json.borrow_money}}</strong></td>



									</tr>
									<tr>
										<td width="120">分期标题：</td>
										<td><strong>{{borrow_json.borrow_title}}</strong></td>
										<td>首付比例	：</td>
										<td><strong>{{borrow_json.trade_perofpay}}</strong></td>
									</tr>
									<tr>
										<td>借款等级	：</td>
										<!--<td><?php echo $data['ad_level'];?></td>-->
										<td><strong>{{borrow_json.ad_level}}</strong></td>
										<td>利率：</td>
										<td><strong>{{borrow_json.borrow_rate}}</strong></td>
									</tr>
									<tr>
										<td>用途：</td>
										<td><strong>{{borrow_json.lt_value}}</strong></td>
										<td>期限：</td>
										<td><strong>{{borrow_json.borrow_loanperiod}}</strong></td>
									</tr>
									<tr>
										<td>还款方式	：</td>
										<td><strong>{{borrow_json.repay_name}}</strong></td>
										<td>手续费	：</td>
										<td><strong>{{borrow_json.borrow_extramoney}}</strong></td>
									</tr>
									<tr>
										<td>首付时间	：</td>
										<td><strong>{{borrow_json.binfo_firstpaydate}}</strong></td>
										<td>延期费用	:</td>
										<td>
											<?php
							$delay_money = ceil($data['delay_time']*$data['borrow_money']*$data['borrow_rate']/1200);
							echo $delay_money." 元";
						?>
										</td>
									</tr>
									<tr>
										<td>尾款时间	:</td>
										<td><?php echo date('Y-m-d H:i:s', $data['binfo_finalpaydate']);?></td>
										<td>延期月份	：</td>
										<td><strong>{{borrow_json.delay_time}}</strong></td>
									</tr>
									<tr>
										<td>取消时间	：</td>
										<td><strong>{{borrow_json.borrow_unworktime}}</strong></td>
										<td></td>
										<td></td>
									</tr>
								</table>
							</ul>
						</div>
					</td>
					<td valign="top" class="pl">
						<div class="indexBox">
							<div class="boxTitle">用户账户信息</div>
							<ul>
								<table width="100%" border="0" cellspacing="0" cellpadding="7" class="tableBasic">
									<tbody>
									<tr>
										<td style="width:200px;text-align: left;">客户ID：</td>
										<td style="width:200px;text-align: left;"><strong>{{borrow_json.borrow_custid}}</strong></td>
									</tr>
									<tr>
										<td style="width:200px;text-align: left;">客户姓名：</td>
										<td style="width:200px;text-align: left;"><strong>{{borrow_json.cust_name}}</strong></td>
									</tr>
									<tr>
										<td style="width:200px;text-align: left;">客户电话：</td>
										<td style="width:200px;text-align: left;"><strong>{{borrow_json.cust_phone}}</strong></td>
									</tr>

									<tr>
										<td style="width:200px;text-align: left;">账户余额	：</td>
										<td style="width:200px;text-align: left;"><strong>{{borrow_json.fund_balance}}</strong></td>
									</tr>
									<tr>
										<td style="width:200px;text-align: left;">剩余分期额度：</td>
										<td style="width:200px;text-align: left;"><strong>{{borrow_json.mostnum}}</strong></td>

									</tr>
									<tr>
										<td style="width:200px;text-align: left;">客户认证资料：</td>
										<td valign="top"><strong></strong>
											<a href="javascript:;" class="cueRed ml" onclick="">
												(点击查看)
											</a>
										</td>
									</tr>
									<tr>
										<td style="width:200px;text-align: left;">查看申请信息：</td>
										<td valign="top"><strong></strong><a href="javascript:;" class="cueRed ml" onclick="">(点击查看)</a></td>
									</tr>

									</tbody>
								</table>
							</ul>
						</div>
					</td>
				</tr>
			</table>
			<div class="indexBox">
				<div class="boxTitle">商户信息</div>
				<ul>
					<table width="100%" border="0" cellspacing="0" cellpadding="7" class="tableBasic">
						<tr>
							<td width="120" valign="top">商户ID：</td>
							<td valign="top"><strong>{{borrow_json.borrow_busid}}</strong></td>
							<td width="150" valign="top">商户全称</td>
							<td valign="top"><strong>{{borrow_json.fac_name}}</strong></td>
							<td width="100" valign="top">商户类别	：</td>
							<td valign="top"><strong>{{borrow_json.man_type}}</strong></td>


						</tr>
						<tr id="table_ZMXY">
							<td valign="top">联系电话		<input type="hidden" id="zmscore_num1" value="1"></td>
							<td valign="top"><strong>{{borrow_json.fac_contactphone}}</strong></td>
							<td valign="top">联系人	</td>
							<td valign="top"><strong>{{borrow_json.fac_contact}}</strong></td>
							<td valign="top">服务分类	</td>
							<td valign="top"><strong>{{borrow_json.name}}</strong></td>
							</td>
						</tr>
						<tr id="table_SHZX">
							<td valign="top">商户认证材料	</td>
							<td valign="top"><strong></strong>
								<a href="javascript:;" class="cueRed ml" onclick="">(点击查看)</a>

							</td>
						</tr>
					</table>
				</ul>
			</div>
			<div style="margin:20px 0;"></div>
			<div class="easyui-tabs" data-options="tabWidth:245">
				<div title="还款信息:" style="padding:10px">
					<!-- <div style="margin:20px 0;"></div> -->
					<table class="tableBasic" id="remark_table" style="width:100%;height:auto;"
						   data-options="
					rownumbers:true,
					singleSelect:true,
					autoRowHeight:false,
					pagination:true,
					nowrap:false,
					pageSize:10,toolbar:'#tb1'
			">
						<thead>
						<tr>
							<td width="10%" valign="top">分期总额</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_pricipal_moneyy}}</strong></td>
							<td width="10%" valign="top">应还总额	</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_money_should_repay}}</strong></td>
							<td width="10%" valign="top">已还总额	</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_period_recovery_repay}}</strong></td>


						</tr>

						<tr>
							<td width="10%" valign="top">剩余总本金</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_pricipal_remain}}</strong></td>
							<td width="10%" valign="top"></td>
							<td width="20%" valign="top"><strong></strong></td>
							<td width="10%" valign="top">已还总本金	</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_actual_pricipal_repay}}</strong></td>



						</tr>
						<tr>
							<td width="10%" valign="top">提前还款总本金</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_principal_advance_repay}}</strong></td>
							<td width="10%" valign="top"></td>
							<td width="20%" valign="top"><strong></strong></td>
							<td width="10%" valign="top">提前还款罚金	</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_fine_money_repay}}</strong></td>
						</tr>

						<tr>
							<td width="10%" valign="top">已还手续费	</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_poundage_repay}}</strong></td>
							<td width="10%" valign="top">已还滞期费	</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_demurrage_repay}}</strong></td>
							<td width="10%" valign="top">已还利息	</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_interest_repay}}</strong></td>
						</tr>
						<tr>
							<td width="10%" valign="top">未还手续费	</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_poundage_not_repay}}</strong></td>
							<td width="10%" valign="top">未还滞期费	</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_demurrage_not_repay}}</strong></td>
							<td width="10%" valign="top">未还利息	</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.sum_interest_not_repay}}</strong></td>
						</tr>

						<tr>
							<td width="10%" valign="top">剩余月还款总额</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.month_repay_money_remain}}</strong></td>
							<td width="10%" valign="top">剩余月还本金	</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.month_repay_principal_remain}}</strong></td>
							<td width="10%" valign="top">剩余月还利息	</td>
							<td width="20%" valign="top"><strong>{{borrow_json_detail_info.month_repay_interest_remain}}</strong></td>

						</tr>
						</thead>
					</table>
				</div>
				<div title="还款列表信息" style="padding:10px">
					<!-- <div style="margin:20px 0;"></div> -->
					<table id="FM_table" style="width:100%;height:auto;"
						   data-options="
					rownumbers:true,
					singleSelect:true,
					autoRowHeight:false,
					pagination:true,
					pageSize:10,toolbar:'#tb2'">
						<thead>
						<tr>
							<th field="repay_detail_id" width="9%" align="center">还款详细ID</th>
							<th field="period_number" width="9%" align="center">期数</th>
							<th field="poundage" width="9%" align="center">手续费</th>
							<th field="pricipal" width="9%" align="center">本金</th>
							<th field="actual_pricipal" width="9%" align="center">实还本金</th>
							<th field="interest" width="9%" align="center">利息</th>
							<th field="actual_interest" width="9%" align="center">实还利息</th>
							<th field="demurrage" width="9%" align="center">滞纳金</th>
							<th field="fine_money" width="9%" align="center">罚金</th>
							<th field="isoverdue" width="9%" align="center">是否逾期</th>
							<th field="repay_date" width="9%" align="center">还款日期</th>

						</tr>
						<tr>

							<th field="repay_detail_id" width="9%" align="center">
								<li style="list-style-type:none;" v-for="todo in borrow_json_detail_table">
								{{ todo.repay_detail_id }}</li></th>
							<th field="period_number" width="9%" align="center">
								<li style="list-style-type:none;" v-for="todo in borrow_json_detail_table">
									{{ todo.period_number }}</li>
							</th>

							<th field="period_number" width="9%" align="center">
								<li style="list-style-type:none;" v-for="todo in borrow_json_detail_table">
									{{ todo.poundage }}</li>
							</th>

							<th field="period_number" width="9%" align="center">
								<li style="list-style-type:none;" v-for="todo in borrow_json_detail_table">
									{{ todo.principal }}</li>
							</th>

							<th field="period_number" width="9%" align="center">
								<li style="list-style-type:none;" v-for="todo in borrow_json_detail_table">
									{{ todo.actual_pricipal }}</li>
							</th>

							<th field="period_number" width="9%" align="center">
								<li style="list-style-type:none;" v-for="todo in borrow_json_detail_table">
									{{ todo.interest }}</li>
							</th>

							<th field="period_number" width="9%" align="center">
								<li style="list-style-type:none;" v-for="todo in borrow_json_detail_table">
									{{ todo.actual_interest }}</li>
							</th>
							<th field="period_number" width="9%" align="center">
								<li style="list-style-type:none;" v-for="todo in borrow_json_detail_table">
									{{ todo.demurrage }}</li>
							</th>
							<th field="period_number" width="9%" align="center">
								<li style="list-style-type:none;" v-for="todo in borrow_json_detail_table">
									{{ todo.fine_money }}</li>
							</th>
							<th field="period_number" width="9%" align="center">
								<li style="list-style-type:none;" v-for="todo in borrow_json_detail_table">
									{{ todo.isoverdue }}</li>
							</th>
							<th field="period_number" width="9%" align="center">
								<li style="list-style-type:none;" v-for="todo in borrow_json_detail_table">
									{{ todo.repay_date }}</li>
							</th>


						</tr>

						</thead>




					</table>
					<tr>


				</div>

			</div>


		</div>

	</div>

</div>

</body>
<script type="text/javascript" src="__PUBLIC__/js/borrow/borrowbusiness_detail.js?a=231"></script>

</html>